Teacher Version
Around the Square
Make a lap around the square!
Physical Robot: AroundTheSquare.rbg
Using Gyro Sensor, you can program your robot to make more accurate turns. This means you can reduce the amount of error, even if you make the robot turn multiple times in a single run!
- Program the robot to complete a full lap around a square box, using the Gyro Sensor to control all of its turns.
- Program the LED to turn orange when the robot is Moving Forward, and flash red when the robot is turning.
Quick Tips
Hint 1: The value 0 on the Gyro Sensor is always in reference to its original direction. If the first turn leaves the robot facing "90" degrees, what will a second 90 degree turn need to turn to?
Hint 2: The second turn will need to turn until the Gyro Sensor reads 180 degrees (90+90). What about the third and fourth?
Hint 3: The third turn will need to go until the Gyro Sensor reads 270 degrees, and the fourth will need to go until it has reached 360.